/**
 * @功能 代理商资料表
 */

package com.ybfenpan.model;


import com.ybfenpan.model.core.BaseModel;
import org.apache.ibatis.type.Alias;

import java.beans.Transient;
import java.util.Date;


@Alias("Member")
public class Member extends BaseModel {


    private String stateRiFeng = "F"; // 对碰奖是否封顶

    private String accountUse = "T"; // 帐号状态
    private String accountFen = "T"; // 静态分红状态（对冲收益）
    private String accountActive = "F"; // 报单状态

    private String accountCenter = "F"; // 是否管理中心
    private String accountBuy = "T"; // 是否购买产品

    private String accountZhuan = "T"; // 是否转积分

    private String stateZiliao = "F"; // 银行资料状态
    private String stateWage = "T"; // 工资状态

    private String stateQian = "F"; // 签到状态

    private Date lastTime; // 上次登录时间
    private Integer loginNum = 0; // 登录次数
    private Date loginTime; // 登录时间

    private Integer errorNum = 0; // 密码错误次数
    private Date errorDate; // 密码错误时间

    private Integer level = 0; // 代理商进入盘的标志，10：开始进入盘，20：出局新建一个盘

    private Integer dailiId; // 代理商级别

    private Double payNum=0d; // 投资额
    private Double payNumPV; //

    private Integer wageCurrentId; // 当前工资

    private String loginName; // 登录名

    private String onePassword; // 查询密码
    private String twoPassword; // 支付密码
    private String threePassword; // 支付密码

    private String pwdQuestion; // 密码保护问题
    private String pwdAnswer; // 密码保护答案

    private Double money = 0d; // 总奖金
    private Double ele = 0d; //  报单积分
    private Double shui = 0d; //
    private Double store = 0d; // 冻结金额的额度
    private Double chuangye = 0d; //
    private Double shopping = 0d; //
    private Double dianzi = 0d; //
    private Double futou = 0d; //

    private Integer chaiStockNum = 0; //
    private Integer stock = 0; //
    private Integer historySellStock = 0; //
    private Integer historyZongSellStock = 0; //
    private Integer historyBuyStock = 0; //

    private Double wage1 = 0d; // 直推奖
    private Double wage2 = 0d; // 出局奖
    private Double wage3 = 0d; // 直推代理商出局奖
    private Double wage4 = 0d; //
    private Double wage5 = 0d; //
    private Double wage6 = 0d; //
    private Double wage7 = 0d; //
    private Double wage8 = 0d; //
    private Double wage9 = 0d; //
    private Double wage10 = 0d; //

    private Double historyWage = 0d; // 累计奖金

    private Integer registerId; // 注册人
    private Date registerDate = new Date(); // 注册日期

    private Date noActiveDate; // 未报单删除时间

    private Integer activeId; // 报单人
    private Date activeDate; // 报单日期

    private Integer recommendId; // 推荐人
    private Integer recommendNum = 0; // 直推人数
    private Integer recommendNum10 = 0; //  分红返回的天数
    private Integer recommendNum20 = 0; //
    private Integer recommendNum30 = 0; //
    private Integer recommendTotalNum = 0; // 团队人数

    private Integer recommendSucceedNum = 0; // 有效直推人数
    private Integer recommendSucceedTotalNum = 0; // 有效团队人数

    private Double recommendYe = 0d; // 直推业绩
    private Double recommendTotalYe = 0d; // 团队业绩

    private String bankName; // 开户行名称
    private String bankAddress; // 开户行地址
    private String bankSheng; // 开户行省份
    private String bankShi; // 开户行地市
    private String bankCardNo; // 银行卡号
    private String bankPersonName; // 开户名

    private String zhifuName; // 支付宝名称
    private String zhifuCardNo; // 支付宝账户
    private String paiCardNo; // 派支付账户

    private String personName; // 真实姓名
    private String cardNo; // 身份证号
    private String sex; // 性别
    private String wei; // 微信号
    private String title = ""; // 网名
    private String tel; // 联系电話
    private String qq; // QQ号码
    private String email; // 安全邮箱

    private String remark; // 备注

    private String onlineState = "F"; // 是否在线

    private String sessionId = "";

    private Integer centerId; // 服务中心

    private Integer fatherId; // 接点人
    private String fatherIds="";		//父亲ID集合
    private Integer qu; // 所属区域
    private Integer zuoId; // 左区代理商
    private Integer youId; // 右区代理商
    private Integer panId; // 所在盘的Id
    private Integer bpanId; // 所在盘的Id

    private Integer zuoRen = 0;
    private Integer youRen = 0;

    private Integer zuoRen1 = 0;   //
    private Integer youRen1 = 0;
    private Integer zuoRen2 = 0;
    private Integer youRen2 = 0;
    private Integer zuoRen3 = 0;
    private Integer youRen3 = 0;
    private Integer zuoRen4 = 0;
    private Integer youRen4 = 0;

    private Double zuoYe = 0d;
    private Double youYe = 0d;

    private Double zuoYuYe3 = 0d; // 三层内
    private Double youYuYe3 = 0d; // 三层内

    private Double zuoYuYe = 0d; // 三层外
    private Double youYuYe = 0d; // 三层外

    private String centerTitle; // 服务中心名称
    private String centerAdds; // 服务中心地址

    private Double riPengNum = 0d; // 对碰奖封顶


    public Integer getBpanId() {
        return bpanId;
    }

    public void setBpanId(Integer bpanId) {
        this.bpanId = bpanId;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Integer getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(Integer loginNum) {
        this.loginNum = loginNum;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getErrorNum() {
        return errorNum;
    }

    public void setErrorNum(Integer errorNum) {
        this.errorNum = errorNum;
    }

    public Date getErrorDate() {
        return errorDate;
    }

    public void setErrorDate(Date errorDate) {
        this.errorDate = errorDate;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getDailiId() {
        return dailiId;
    }

    public void setDailiId(Integer dailiId) {
        this.dailiId = dailiId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getOnePassword() {
        return onePassword;
    }

    public void setOnePassword(String onePassword) {
        this.onePassword = onePassword;
    }

    public String getTwoPassword() {
        return twoPassword;
    }

    public void setTwoPassword(String twoPassword) {
        this.twoPassword = twoPassword;
    }

    public String getThreePassword() {
        return threePassword;
    }

    public void setThreePassword(String threePassword) {
        this.threePassword = threePassword;
    }

    public String getPwdQuestion() {
        return pwdQuestion;
    }

    public void setPwdQuestion(String pwdQuestion) {
        this.pwdQuestion = pwdQuestion;
    }

    public String getPwdAnswer() {
        return pwdAnswer;
    }

    public void setPwdAnswer(String pwdAnswer) {
        this.pwdAnswer = pwdAnswer;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Double getEle() {
        return ele;
    }

    public void setEle(Double ele) {
        this.ele = ele;
    }

    public Double getShui() {
        return shui;
    }

    public void setShui(Double shui) {
        this.shui = shui;
    }

    public Double getStore() {
        return store;
    }

    public void setStore(Double store) {
        this.store = store;
    }

    public Double getChuangye() {
        return chuangye;
    }

    public void setChuangye(Double chuangye) {
        this.chuangye = chuangye;
    }

    public Double getWage1() {
        return wage1;
    }

    public void setWage1(Double wage1) {
        this.wage1 = wage1;
    }

    public Double getWage2() {
        return wage2;
    }

    public void setWage2(Double wage2) {
        this.wage2 = wage2;
    }

    public Double getWage3() {
        return wage3;
    }

    public void setWage3(Double wage3) {
        this.wage3 = wage3;
    }

    public Double getWage4() {
        return wage4;
    }

    public void setWage4(Double wage4) {
        this.wage4 = wage4;
    }

    public Double getWage5() {
        return wage5;
    }

    public void setWage5(Double wage5) {
        this.wage5 = wage5;
    }

    public Double getWage6() {
        return wage6;
    }

    public void setWage6(Double wage6) {
        this.wage6 = wage6;
    }

    public Double getWage7() {
        return wage7;
    }

    public void setWage7(Double wage7) {
        this.wage7 = wage7;
    }

    public Double getWage8() {
        return wage8;
    }

    public void setWage8(Double wage8) {
        this.wage8 = wage8;
    }

    public Double getHistoryWage() {
        return historyWage;
    }

    public void setHistoryWage(Double historyWage) {
        this.historyWage = historyWage;
    }

    public Integer getRegisterId() {
        return registerId;
    }

    public void setRegisterId(Integer registerId) {
        this.registerId = registerId;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    public Integer getActiveId() {
        return activeId;
    }

    public void setActiveId(Integer activeId) {
        this.activeId = activeId;
    }

    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    public Integer getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(Integer recommendId) {
        this.recommendId = recommendId;
    }

    public Integer getRecommendNum() {
        return recommendNum;
    }

    public void setRecommendNum(Integer recommendNum) {
        this.recommendNum = recommendNum;
    }

    public Integer getRecommendTotalNum() {
        return recommendTotalNum;
    }

    public void setRecommendTotalNum(Integer recommendTotalNum) {
        this.recommendTotalNum = recommendTotalNum;
    }

    public Integer getRecommendSucceedNum() {
        return recommendSucceedNum;
    }

    public void setRecommendSucceedNum(Integer recommendSucceedNum) {
        this.recommendSucceedNum = recommendSucceedNum;
    }

    public Integer getRecommendSucceedTotalNum() {
        return recommendSucceedTotalNum;
    }

    public void setRecommendSucceedTotalNum(Integer recommendSucceedTotalNum) {
        this.recommendSucceedTotalNum = recommendSucceedTotalNum;
    }

    public String getAccountBuy() {
        return accountBuy;
    }

    public void setAccountBuy(String accountBuy) {
        this.accountBuy = accountBuy;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getWei() {
        return wei;
    }

    public void setWei(String wei) {
        this.wei = wei;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStateRiFeng() {
        return stateRiFeng;
    }

    public void setStateRiFeng(String stateRiFeng) {
        this.stateRiFeng = stateRiFeng;
    }

    public String getAccountUse() {
        return accountUse;
    }

    public void setAccountUse(String accountUse) {
        this.accountUse = accountUse;
    }

    public String getAccountFen() {
        return accountFen;
    }

    public void setAccountFen(String accountFen) {
        this.accountFen = accountFen;
    }

    public String getAccountActive() {
        return accountActive;
    }

    public void setAccountActive(String accountActive) {
        this.accountActive = accountActive;
    }

    public String getAccountCenter() {
        return accountCenter;
    }

    public void setAccountCenter(String accountCenter) {
        this.accountCenter = accountCenter;
    }

    public String getAccountZhuan() {
        return accountZhuan;
    }

    public void setAccountZhuan(String accountZhuan) {
        this.accountZhuan = accountZhuan;
    }

    public String getStateZiliao() {
        return stateZiliao;
    }

    public void setStateZiliao(String stateZiliao) {
        this.stateZiliao = stateZiliao;
    }

    public String getStateWage() {
        return stateWage;
    }

    public void setStateWage(String stateWage) {
        this.stateWage = stateWage;
    }

    @Transient
    public String getIco() {

        String ico = "";

        if (this.accountActive.equals("T")) {

            if (this.level.equals(10)) {
                ico = "person20.jpg";

            } else if (this.level.equals(20)) {
                ico = "person30.jpg";

            } else if (this.level.equals(30)) {
                ico = "person40.jpg";

            }
        } else {
            ico = "person.jpg";
        }

        return ico;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankAddress() {
        return bankAddress;
    }

    public void setBankAddress(String bankAddress) {
        this.bankAddress = bankAddress;
    }

    public String getBankSheng() {
        return bankSheng;
    }

    public void setBankSheng(String bankSheng) {
        this.bankSheng = bankSheng;
    }

    public String getBankShi() {
        return bankShi;
    }

    public void setBankShi(String bankShi) {
        this.bankShi = bankShi;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public String getBankPersonName() {
        return bankPersonName;
    }

    public void setBankPersonName(String bankPersonName) {
        this.bankPersonName = bankPersonName;
    }

    public String getZhifuName() {
        return zhifuName;
    }

    public void setZhifuName(String zhifuName) {
        this.zhifuName = zhifuName;
    }

    public String getZhifuCardNo() {
        return zhifuCardNo;
    }

    public void setZhifuCardNo(String zhifuCardNo) {
        this.zhifuCardNo = zhifuCardNo;
    }

    public String getPaiCardNo() {
        return paiCardNo;
    }

    public void setPaiCardNo(String paiCardNo) {
        this.paiCardNo = paiCardNo;
    }

    public Double getPayNum() {
        return payNum;
    }

    public void setPayNum(Double payNum) {
        this.payNum = payNum;
    }

    public Double getRecommendYe() {
        return recommendYe;
    }

    public void setRecommendYe(Double recommendYe) {
        this.recommendYe = recommendYe;
    }

    public Double getRecommendTotalYe() {
        return recommendTotalYe;
    }

    public void setRecommendTotalYe(Double recommendTotalYe) {
        this.recommendTotalYe = recommendTotalYe;
    }

    public Integer getWageCurrentId() {
        return wageCurrentId;
    }

    public void setWageCurrentId(Integer wageCurrentId) {
        this.wageCurrentId = wageCurrentId;
    }

    public Date getNoActiveDate() {
        return noActiveDate;
    }

    public void setNoActiveDate(Date noActiveDate) {
        this.noActiveDate = noActiveDate;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getFatherId() {
        return fatherId;
    }

    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public String getFatherIds() {
        return fatherIds;
    }

    public void setFatherIds(String fatherIds) {
        this.fatherIds = fatherIds;
    }

    public Integer getQu() {
        return qu;
    }

    public void setQu(Integer qu) {
        this.qu = qu;
    }

    public Integer getZuoId() {
        return zuoId;
    }

    public void setZuoId(Integer zuoId) {
        this.zuoId = zuoId;
    }

    public Integer getYouId() {
        return youId;
    }

    public void setYouId(Integer youId) {
        this.youId = youId;
    }

    public Integer getPanId() {
        return panId;
    }

    public void setPanId(Integer panId) {
        this.panId = panId;
    }

    public String getStateQian() {
        return stateQian;
    }

    public void setStateQian(String stateQian) {
        this.stateQian = stateQian;
    }

    public Integer getRecommendNum10() {
        return recommendNum10;
    }

    public void setRecommendNum10(Integer recommendNum10) {
        this.recommendNum10 = recommendNum10;
    }

    public Integer getRecommendNum20() {
        return recommendNum20;
    }

    public void setRecommendNum20(Integer recommendNum20) {
        this.recommendNum20 = recommendNum20;
    }

    public Integer getRecommendNum30() {
        return recommendNum30;
    }

    public void setRecommendNum30(Integer recommendNum30) {
        this.recommendNum30 = recommendNum30;
    }

    public Integer getZuoRen() {
        return zuoRen;
    }

    public void setZuoRen(Integer zuoRen) {
        this.zuoRen = zuoRen;
    }

    public Integer getYouRen() {
        return youRen;
    }

    public void setYouRen(Integer youRen) {
        this.youRen = youRen;
    }

    public Double getZuoYe() {
        return zuoYe;
    }

    public void setZuoYe(Double zuoYe) {
        this.zuoYe = zuoYe;
    }

    public Double getYouYe() {
        return youYe;
    }

    public void setYouYe(Double youYe) {
        this.youYe = youYe;
    }

    public Double getZuoYuYe() {
        return zuoYuYe;
    }

    public void setZuoYuYe(Double zuoYuYe) {
        this.zuoYuYe = zuoYuYe;
    }

    public Double getYouYuYe() {
        return youYuYe;
    }

    public void setYouYuYe(Double youYuYe) {
        this.youYuYe = youYuYe;
    }

    public Integer getCenterId() {
        return centerId;
    }

    public void setCenterId(Integer centerId) {
        this.centerId = centerId;
    }

    // 不是数据库字段
    @Transient
    public Double getXiaoNum() {
        if (this.zuoYe > this.youYe) {
            return this.youYe;
        } else {
            return this.zuoYe;
        }
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getOnlineState() {
        return onlineState;
    }

    public void setOnlineState(String onlineState) {
        this.onlineState = onlineState;
    }

    public Double getDianzi() {
        return dianzi;
    }

    public void setDianzi(Double dianzi) {
        this.dianzi = dianzi;
    }

    public Double getFutou() {
        return futou;
    }

    public void setFutou(Double futou) {
        this.futou = futou;
    }

    public Double getShopping() {
        return shopping;
    }

    public void setShopping(Double shopping) {
        this.shopping = shopping;
    }

    public Double getWage9() {
        return wage9;
    }

    public void setWage9(Double wage9) {
        this.wage9 = wage9;
    }

    public Double getWage10() {
        return wage10;
    }

    public void setWage10(Double wage10) {
        this.wage10 = wage10;
    }

    public Integer getZuoRen1() {
        return zuoRen1;
    }

    public void setZuoRen1(Integer zuoRen1) {
        this.zuoRen1 = zuoRen1;
    }

    public Integer getYouRen1() {
        return youRen1;
    }

    public void setYouRen1(Integer youRen1) {
        this.youRen1 = youRen1;
    }

    public Integer getZuoRen2() {
        return zuoRen2;
    }

    public void setZuoRen2(Integer zuoRen2) {
        this.zuoRen2 = zuoRen2;
    }

    public Integer getYouRen2() {
        return youRen2;
    }

    public void setYouRen2(Integer youRen2) {
        this.youRen2 = youRen2;
    }

    public Integer getZuoRen3() {
        return zuoRen3;
    }

    public void setZuoRen3(Integer zuoRen3) {
        this.zuoRen3 = zuoRen3;
    }

    public Integer getYouRen3() {
        return youRen3;
    }

    public void setYouRen3(Integer youRen3) {
        this.youRen3 = youRen3;
    }

    public Integer getZuoRen4() {
        return zuoRen4;
    }

    public void setZuoRen4(Integer zuoRen4) {
        this.zuoRen4 = zuoRen4;
    }

    public Integer getYouRen4() {
        return youRen4;
    }

    public void setYouRen4(Integer youRen4) {
        this.youRen4 = youRen4;
    }

    public Double getZuoYuYe3() {
        return zuoYuYe3;
    }

    public void setZuoYuYe3(Double zuoYuYe3) {
        this.zuoYuYe3 = zuoYuYe3;
    }

    public Double getYouYuYe3() {
        return youYuYe3;
    }

    public void setYouYuYe3(Double youYuYe3) {
        this.youYuYe3 = youYuYe3;
    }

    public Double getPayNumPV() {
        return payNumPV;
    }

    public void setPayNumPV(Double payNumPV) {
        this.payNumPV = payNumPV;
    }

    public Double getRiPengNum() {
        return riPengNum;
    }

    public void setRiPengNum(Double riPengNum) {
        this.riPengNum = riPengNum;
    }

    public String getCenterTitle() {
        return centerTitle;
    }

    public void setCenterTitle(String centerTitle) {
        this.centerTitle = centerTitle;
    }

    public String getCenterAdds() {
        return centerAdds;
    }

    public void setCenterAdds(String centerAdds) {
        this.centerAdds = centerAdds;
    }

    public Integer getChaiStockNum() {
        return chaiStockNum;
    }

    public void setChaiStockNum(Integer chaiStockNum) {
        this.chaiStockNum = chaiStockNum;
    }

    public Integer getHistorySellStock() {
        return historySellStock;
    }

    public void setHistorySellStock(Integer historySellStock) {
        this.historySellStock = historySellStock;
    }

    public Integer getHistoryZongSellStock() {
        return historyZongSellStock;
    }

    public void setHistoryZongSellStock(Integer historyZongSellStock) {
        this.historyZongSellStock = historyZongSellStock;
    }

    public Integer getHistoryBuyStock() {
        return historyBuyStock;
    }

    public void setHistoryBuyStock(Integer historyBuyStock) {
        this.historyBuyStock = historyBuyStock;
    }
}